package com.byd.sealmanage.dao.mybatis;

import com.byd.sealmanage.config.CommonMapper;
import com.byd.sealmanage.modal.po.TbKeepPeople;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbKeepPeopleMapper extends CommonMapper<TbKeepPeople> {

    /**
     * 批量插入监印人信息
     * @param peopleList
     * @return
     */
    int insertKeepPeopleList(List<TbKeepPeople> peopleList);

    /**
     * 私印备案时批量插入监印人
     * @param peopleList
     * @return
     */
    int insertKeepPeoplePersonal(List<TbKeepPeople> peopleList);

    /**
     * 跨部门转交时添加监印人信息
     * @param tbKeepPeople
     * @return
     */
    int insertKeepPeopleOne(TbKeepPeople tbKeepPeople);

    /**
     * 跨部门转交时更新监印人信息
     * @param tbKeepPeople
     * @return
     */
    int updateKeepPeopleOne(TbKeepPeople tbKeepPeople);

}